/*
FieldAnimation.h
FieldAnimation Header
Zach Agudelo, Andi Cescolini, Sam Tarin

Handles the "motion" of the players
basically cylces each player through individual sets of frames
Called by Field class
*/
#ifndef _FIELDANIMATION_H_
#define _FIELDANIMATION_H_
 
#include "SDL/SDL.h"
 
class FieldAnimation {
    
 
    public:
        int    MaxFrames;
        bool    Oscillate;//wheter cycling back and forth

        FieldAnimation(); //constructor
        void OnAnimate(); //main animation is in here
        //get and set for private data
        void SetFrameRate(int Rate);
        void SetCurrentFrame(int Frame);
        int GetCurrentFrame();
    private:
        int    CurrentFrame;
        int     FrameInc;
        int     FrameRate; //Milliseconds
        long    OldTime;
};
 
#endif

